package cn.bdqn.hospital.service;

import cn.bdqn.hospital.entity.Employees;


public interface EmployeesService {
    /**
     * 新增员工
     * @param employees
     * @return
     * @throws Exception
     */
    public boolean add(Employees employees) throws Exception;

    /**
     * 修改员工
     * @param employees
     * @return
     * @throws Exception
     */
    public boolean update(Employees employees) throws Exception;

    /**
     * 通过员工id删除员工
     * @param ygid
     * @return
     * @throws Exception
     */
    public boolean deleteByYgid(Integer ygid) throws Exception;

    /**
     * 通过员工姓名删除员工
     * @param ygName
     * @return
     * @throws Exception
     */
    public int deleteByYgName(String ygName) throws Exception;

    /**
     * 通过员工账号删除员工
     * @param ygAccount
     * @return
     * @throws Exception
     */
    public int deleteByYgAccount(String ygAccount) throws Exception;

    /**
     * 通过员工id查询员工
     * @param ygid
     * @return
     * @throws Exception
     */
    public Employees findEmployeesById(Integer ygid) throws Exception;

    /**
     * 通过员工账号查询员工
     * @param ygAccount
     * @return
     * @throws Exception
     */
    public Employees findEmployeesByAccount(String ygAccount) throws Exception;

    /**
     * 通过员工手机号查询员工
     * @param ygPhone
     * @return
     * @throws Exception
     */
    public Employees findEmployeesByPhone(String ygPhone) throws Exception;
}
